package com.ruoyi.common.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * VIEW对象 mydraft
 * 
 * @author dustball
 * @date 2021-04-23
 */
public class Mydraft extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件标题 */
    @Excel(name = "文件标题")
    private String subject;

    /** 起草时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起草时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date writedate;

    /** 读者权限 */
    @Excel(name = "读者权限")
    private String readers;

    private String docunid;

    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }
    public void setWritedate(Date writedate) 
    {
        this.writedate = writedate;
    }

    public Date getWritedate() 
    {
        return writedate;
    }
    public void setReaders(String readers) 
    {
        this.readers = readers;
    }

    public String getReaders() 
    {
        return readers;
    }

    public String getDocunid() {
        return docunid;
    }

    public void setDocunid(String docunid) {
        this.docunid = docunid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("subject", getSubject())
            .append("writedate", getWritedate())
            .append("readers", getReaders())
            .toString();
    }
}
